Skip to content

Use OnceLock for logging guard#610

Merged
multiplex55 merged 1 commit intomasterfrom
codex/refactor-logging.rs-to-use-oncelock
Aug 25, 2025
Merged

Use OnceLock for logging guard#610
multiplex55 merged 1 commit intomasterfrom
codex/refactor-logging.rs-to-use-oncelock

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

@multiplex55 multiplex55 commented Aug 25, 2025

Summary

  • Replace global static mut LOG_GUARD with OnceLock to avoid unsafe
  • Set the logging guard using OnceLock::set

Testing

  • cargo test (fails: Need to activate either wayland or x11 feature on linux)

@multiplex55 multiplex55 merged commit d88b155 into master Aug 25, 2025
1 check passed
@multiplex55 multiplex55 deleted the codex/refactor-logging.rs-to-use-oncelock branch August 25, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant